<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/report.js"></script>
<title>magento赞助</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">赞助数据的统计数据</h1>
      <form class="stdform stdform2" method="get" id="search" action="/magento/ajaxbutton">
      <input type="hidden" name="op" value="successdata">
      <input type="hidden" name="type" value="1">
      <span>创建人</span>
      <input type="text" name="ms_user" id="ms_user" class="width200" value="{{$ms_user}}" placeholder="创建人" />
      <span>顾客姓名</span>
      <input type="text" name="ms_object_name" id="ms_object_name" class="width200" value="{{$ms_object_name}}" placeholder="顾客姓名" />
      <span>来源</span>
      <input type="text" name="ms_source" id="ms_source" class="width200" value="{{$ms_source}}" placeholder="关键词" />
      <span>时间段选择</span>
      <select name="timedata" id="timedata"  class="selection select2_group" style="width:100px;" >
       {{foreach from=$timedatalist item=li key=key}}
        <option value="{{$li}}" {{if $li==$timedata}} selected{{/if}}>{{$li}}</option>
       {{/foreach}}
      </select>
           
      <button class="btn btn-primary" id="searchbtn">Search</button>
      </form>
      </div>
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <td width="8%" bgcolor="#FEFFF1">创建人</td>
    <td width="8%" bgcolor="#FEFFF1">来源/媒介</td>
    <td width="10%" bgcolor="#FEFFF1">交易次数</td>
    <td width="8%" bgcolor="#FEFFF1">收入币种</td>
    <td width="8%" bgcolor="#FEFFF1">收入,原始货币</td>
    <td width="8%" bgcolor="#FEFFF1">人民币收入</td>
    <td width="8%" bgcolor="#FEFFF1">时间段</td>
  </tr>
</thead>

<tbody >
      {{foreach from=$data item=li key=key}}
      <tr  style="cursor:pointer;">
      <td >
        {{$li.ms_user}}
      </td>
      <td >
      	{{$li.ms_source}}
      </td>
      <td>
      	{{$li.ms_number_transactions}}
      </td>
      <td>
      	{{$li.ms_income_currency}}
      </td>
      <td>
      	{{$li.ms_income}}
      </td>
      <td>
        {{$li.ms_rmb_income}}
      </td>
      <td>
        {{$li.timedata}}
      </td>
      </tr>
      {{/foreach}}
      <tr><td></td><td></td><td></td><td></td><td>总计人民币</td><td>{{$sum}}</td><td>{{$timedata}}</td></tr>
</tbody>
</table>
      </div>
      </div>